--[[
邮件模块状态码定义 返回码定义
--]]


--发送邮件返回码
ERR_SENDMAIL_OK             = 0
ERR_SENDMAIL_NOTITLE        = 1
ERR_SENDMAIL_ATTACHMENTMAX  = 2

-- 取附件错误码
ERR_FETCH_OK				= 0
ERR_FETCH_INVALID_MAILID	= 1
ERR_FETCH_NO_ATTACHMENT		= 2
ERR_FETCH_NOSPACE_LEFT		= 3
ERR_FETCH_LOGIC				= 4
ERR_FETCH_NOT_RECEIVER		= 5

-- 每天可以发的邮件数量
MAX_SEND_MAIL_NUM_EACH_DAY = 30

-- 邮箱满信件数
MAX_RECEIVE_MAIL_NUM = 50
MAX_SEND_MAIL_1P_NUM = 10


-- 邮件类型
MAIL_TYPE_SYSTEM = 1		-- 系统邮件
MAIL_TYPE_USER = 2			-- 用户邮件

DEL_MAIL_TIME   = 7 * 86400    --15天后删除邮件
